package com.example.zzh.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.zzh.entity.ZzhRole;
import com.example.zzh.mapper.ZzhRoleMapper;
import com.example.zzh.mapper.ZzhStaffMapper;
import com.example.zzh.service.ZzhRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author zzh
 * @since 2023-08-09
 */
@Service
public class ZzhRoleServiceImpl extends ServiceImpl<ZzhRoleMapper, ZzhRole> implements ZzhRoleService {
    @Resource
    private ZzhRoleMapper zzhRoleMapper;
    @Override
    public IPage pageNames(Page<ZzhRole> page, Wrapper wrapper) {
        return zzhRoleMapper.pageNames(page,wrapper);
    }

    @Override
    public ZzhRole getRoleById(int id) {
        return zzhRoleMapper.selectById(id);
    }
}
